import { request } from '../axios/request'
//我的资料
export function getmyData(doctorId: number, sessionId: number) {
  return request({
    url: '/api/health/doctor/verify/v1/findDoctorById',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId,
      'Content-Type': 'application/json'
    },
    method: 'GET',
    params: { doctorId, sessionId }
  })
}
//查询形象照
export function getimgData() {
  return request({
    url: '/api/health/doctor/v1/findSystemImagePic',
    headers: {
      'Content-Type': 'application/json'
    },
    method: 'GET'
  })
}
//选择系统提供的形象照
export function sheactionData(doctorId: number, sessionId: number, imagePic: String) {
  return request({
    url: '/api/health/doctor/verify/v1/chooseImagePic',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId,
      'Content-Type': 'application/json'
    },
    method: 'POST',
    params: { doctorId, sessionId, imagePic }
  })
}
//上传形象照
export function onlaytionData(doctorId: number, sessionId: number, imagePic: File) {
  return request({
    url: '/api/health/doctor/verify/v1/uploadImagePic',
    headers: {
      doctorId: doctorId,
      sessionId: sessionId,
      'Content-Type': 'application/json'
    },
    method: 'POST',
    params: { doctorId, sessionId, imagePic }
  })
}

// export function shangchuanlist(values: object) {
//   return request({
//     url: 'http://localhost:3000/api/upload',
//     method: 'POST',
//     params: values
//   })
// }

// 根据关键词查询病友圈
export const getSearchData = async(data:any)=>{
    return await request.get('/api/health/doctor/sickCircle/v1/searchSickCircle',{params:data})
}

